#include<iostream>
using namespace std;
class Person
{
	private:
		char name[20];
		int age;
		char gender[10];
		char address[100];
		char phone[15];
	public:
		void set();
		void show();
};
class Teacher:public virtual Person
{
	private:
		char job[20];
		double salary;
	public:
		void set();
		void show();
};
class Leader:public virtual Person
{
	private:
		char duty[20];
	public:
		void set();
		void show();
};
class Teacher_Leader:public Leader,public Teacher
{
	public:
		void set();
		void show();
};
void Person::set()
{
	cout<<"setPerson:name age gender address phone"<<endl;
	cin>>name>>age>>gender>>address>>phone;
}
void Person::show()
{
	cout<<"name:"<<name<<"\nage:"<<age<<"\ngender"<<gender<<"\naddress:"<<address<<"\nphone"<<phone<<endl;
}
void Teacher::set()
{
	cout<<"setTeacher:job salary"<<endl;
	cin>>job>>salary;
}
void Teacher::show()
{
	cout<<"job:"<<job<<"\nsalary:"<<salary<<endl;
}
void Leader::set()
{
	cout<<"setLeader:duty"<<endl;
	cin>>duty;
}
void Leader::show()
{
	cout<<"duty:"<<duty<<endl;
}
void Teacher_Leader::set()
{
	Person::set();
	Teacher::set();
	Leader::set();
}
void Teacher_Leader::show()
{
	Person::show();
	Teacher::show();
	Leader::show();
}
int main()
{
	Teacher_Leader a;
	a.set();
	a.show();
	return 0;
}
